import request from '@/utils/request'

export function newKnowledgeDb(data) {
  return request({
    url: '/knowledgeDB/newKnowledgeDb',
    method: 'post',
    baseURL: 'http://localhost:8021',
    data
  })
}

export function newKnowledgeDbFile(data) {
  return request({
    url: '/knowledgeDB/newKnowledgeDbFile',
    method: 'post',
    baseURL: 'http://localhost:8021',
    data
  })
}

export function newNote(data){
  return request({
      url: '/note/newNote',
      method: 'post',
      baseURL: 'http://localhost:8031',
      data
  })
}

export function newBlog(ownerNickname,ownerAccount,title,contentLimit,bologCover,uploadTime){
  return request({
      url: '/blog/newBlog',
      method: 'post',
      baseURL: 'http://localhost:8041',
      params: { ownerNickname,ownerAccount,title,contentLimit,bologCover,uploadTime }
  })
}

export function newFeedback(data){
  return request({
    url: '/feedback/newFeedback',
    method: 'post',
    baseURL: 'http://localhost:8021',
    data
  })
}
